package com.honour.service.interfaced.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.honour.service.interfaced.AdvertisementInManager;
import com.system.dao.DaoSupport;
import com.system.util.PageData;


/** 
 * 说明： 广告表
 * 创建人：zhaozhenhua
 * 创建时间：2017-12-25
 * @version
 */
@Service("advertisementInService")
public class AdvertisementInService implements AdvertisementInManager{

	@Resource(name = "daoSupport")
	private DaoSupport dao;

	/*
	 * 修改点击次数
	 */
	@Override
	public void editClickCount(PageData pd) throws Exception {
		dao.update("AdvertisementInMapper.editClickCount", pd);
	}

	/*
	 * 根据广告栏位置查询广告
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getAdByPosition(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("AdvertisementInMapper.getAdByPosition", pd);
	}

	/*
	 * 查询汇集里的广告
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getAdByConverge(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("AdvertisementInMapper.getAdByConverge", pd);
	}

	/*
	 * 获取游艇荣耀特权下广告下可滑动按钮
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getYachtButtonList(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("AdvertisementInMapper.getYachtButtonList", pd);
	}
	
	
	
	
	
}

